#ifndef QMEMORYLEAK_H
#define QMEMORYLEAK_H


#define LEAK_ACTIVATED

#include "qlogger.h"
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

class QMemoryLeak
{
public:
	QMemoryLeak();
	~QMemoryLeak();


private:
	_CrtMemState m_begin, m_end, m_diff;
};

#define __LEAK__						QMemoryLeak m;

#endif // QMEMORYLEAK_H
